package com.hexacta.hrs.repositories.feedback;

import java.util.Collection;

import com.hexacta.hrs.domain.feedback.Period;
import com.hexacta.hrs.repositories.RecordObjectRepository;

public interface PeriodObjectRepository extends RecordObjectRepository<Period> {

	public Collection<Period> findAll();

	public Period getOpenPeriod();
	
	public void closePeriod(Period period);
	
	public void closePeriod(String year);
	
	public void openPeriod(Period period);
	
	public void openPeriod(String year);
	
	public Period getLastPeriod();
	
	public Period getPeriodByYear(String year);

	
}
